package com.local.webservice;

import com.local.webservice.service.HelloWorld;
import com.local.webservice.service.impl.HelloWorldImpl;

import javax.xml.ws.Endpoint;

/**
 * @author lou ke
 * @version 1.0
 * @since 2020/5/8 14:22
 */

/**
 * jdk 实现:  暴露 webservice 接口
 */
public class Server {
    public static void main(String[] args) {
        System.out.println("web service start...");
        // 实现类
        HelloWorld implementor = new HelloWorldImpl();
        // 地址
        String address = "http://127.0.0.1:8000/helloworld";
        // 发布
        Endpoint.publish(address, implementor);
        System.out.println("web service started...");
    }
}
